<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>message handling</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

	</head>
	<body>
	
	<h1>Message Handling</h1>
	
	<ul>
		<li>
			<a href="getMessageAction.action?messageStatus=&messageType=&messagePage=1">all messages</a>
		</li>
		<li>
			<a href="getMessageAction.action?messageStatus=unRead&messageType=&messagePage=1">unRead messages</a>
		</li>
		<li>
			<a href="getMessageAction.action?messageStatus=&messageType=register&messagePage=1">register messages</a>
		</li>
	</ul>
		<#list messages as message>
		<#if messageStatus!="unRead">状态：${message.messageStatus}&nbsp&nbsp</#if>
			备注： ${message.messageNote}	&nbsp&nbsp&nbsp&nbsp			
			<#if (message.messageType)="register"><a href = "viewRegAction.action?messageStatus=${message.messageStatus}&messageId=${message.messageId}&objectId=${message.objectId}&inTime=${message.inTime}">go</a></#if>
			<#if (message.messageType)="authority added"><a href="addUserToTheme.action?themeNote=${message.messageNote}">go</a></#if>
		<br>
		</#list> <#if (messagePage<=1)> <#else>
		<a
			href="getMessageAction.action?messagePage=1&messageStatus=${messageStatus}&messageType=${messageType}">首页</a>
		<a
			href="getMessageAction.action?messagePage=${messagePage-1}&messageStatus=${messageStatus}&messageType=${messageType}">上一页</a>
		</#if> <#if (messagePage>=lastPage)> <#else>
		<a
			href="getMessageAction.action?messagePage=${messagePage+1}&messageStatus=${messageStatus}&messageType=${messageType}">下一页</a>
		<a
			href="getMessageAction.action?messagePage=${lastPage}&messageStatus=${messageStatus}&messageType=${messageType}">尾页</a>
		</#if>
		<form method="post" action="getMessageAction.action">
			Page
			<input type="text" name=messagePage value=${messagePage}>
			<br>
			Status
			<input type="type" name=messageStatus value=${messageStatus}>
			Type
			<input type="type" name=messageType value=${messageType}>
			<br>
			<input type="submit" value="go" />
		</form>
	</body>
</html>